import { createApp } from "vue";
import pinia from "@/stores/index.js";

import App from "./App.vue";
import router from "@/router/index.js";

import "@/assets/main.css";

import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

// 引入阿里图标
import "./assets/iconFont/iconfont.css";
import "./assets/iconFont/iconfont.js";

// 引入vue3-seamless-scroll
import vue3SeamlessScroll from "vue3-seamless-scroll";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(pinia);
app.use(router);
app.use(ElementPlus);
app.use(vue3SeamlessScroll);

app.mount("#app");
